from ronglian_sms_sdk import SmsSDK

accId = '2c94811c946f6bfb0196a45b3f1769d7'
accToken = '3ab360957a7640838daab95d80198bce'
appId = '2c94811c946f6bfb0196a45b40ac69de'

def send_message(phone,code):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = phone
    datas = (code,)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp


